//
//  PostManage.h
//  PostDelivery
//
//  Created by wmz on 2020/6/18.
//  Copyright © 2020 wmz. All rights reserved.
//
#import "QDUserModel.h"
#import "CommonNetWork.h"
#import "QDMyWalletModel.h"
#import "QDOrderNetWork.h"

/// 开发
static NSString * _Nullable const kCurrentEnvironment = @"develop";
/// 生产
//static NSString * _Nullable const kCurrentEnvironment = @"product";
/// 当前网络环境
static NSString *_Nullable const environmentKey = @"BitCityBuilding_environmentKey";

/// 平台客服
static NSString * _Nullable const ALL_KE_FU = @"888888";
/// 微信id
static NSString * _Nullable const PAY_WX_APP_ID = @"wx6ab3706c778dfb70";
/// 友盟
static NSString * _Nullable const UM_APP_ID = @"5f95037e45b2b751a91a96e2";

#define wFont(size)   [[PostManage shareInstance] setUpSize:size]
#define wColor(color) [[PostManage shareInstance] setUpColor:color]

NS_ASSUME_NONNULL_BEGIN

@interface PostManage : NSObject
/// 字体缩放倍数
@property (nonatomic, assign) CGFloat fontScale;
/// 主题
@property (nonatomic, strong) NSString* theme;
/// token
@property (nonatomic, copy, nullable) NSString *token;
/// userModel
@property (nonatomic, strong, nullable) QDUserModel *userModel;
/// wallModel
@property (nonatomic, strong, nullable) QDMyWalletModel *wallModel;
/// 是否登录
@property (nonatomic, assign, getter=isLogin) BOOL login;

@property (nonatomic, copy) NSDictionary *payInfo;

@property (nonatomic, copy) NSString *userSig;

/// 单例
+ (instancetype)shareInstance;
/// 设置字体
- (CGFloat)setUpSize:(NSInteger)size;
/// 设置颜色
- (UIColor*)setUpColor:(long)rgbValue;
/// 更新用户信息
- (void)updateUser:(nullable PostNetWorkBock)block;
/// 更新钱包
- (void)updateWallet:(nullable PostNetWorkBock)block;
/// 退出登录
- (void)logout:(nullable NSString*)str root:(BOOL)root;
/// 登录腾讯云
- (void)loginTUIM:(nullable PostNetWorkBock)block;
/// 清理缓存
-(void)cleanCache;
/// 获取缓存
-(NSString*)getCacheSize;
@end

NS_ASSUME_NONNULL_END
